#include "room.h"

Room::Room() {}

Room Room::operator+(const Room &r)
{
    Room temp;
    temp.bedroom =  this->bedroom + r.bedroom;
    temp.sitroom = (  this->sitroom ==0 && r.sitroom==0    )?0:1;
    return temp;
}

Room Room::operator+(const int &i)
{
    Room temp;
    temp.bedroom =  this->bedroom + i;
    return temp;
}
